package com.example.bes013.web.demo.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class ApiInterfaceImpl implements ApiInterface {

    @Override
    public String jumpPath(HttpServletRequest request, HttpServletResponse response) {
        //response.setHeader("Content-Type", MediaType.APPLICATION_JSON_UTF8_VALUE);
        response.setHeader("Content-Type", MediaType.TEXT_HTML_VALUE);
        return "welcome to use bes application server ~~~";
    }
}
